/*
 * @(#)Terminator.java	1.0 2000/12/14
 *
 * Copyright 2000 Thomas Barnekow. All Rights Reserved.
 *
 * This software is the proprietary information of Thomas Barnekow.
 * Use is subject to license terms.
 */

package tb.jots;

/**
 * This interface corresponds to the <code>CosTransactions::Terminator</code> IDL interface.
 *
 * @author Thomas Barnekow
 * @version 1.0
 */
public interface Terminator {

  /**
   * Commit current transaction. Report heuristic exceptions if
   * <code>reportHeuristics</code> flag is set.
   *
   * @exception NoPermissionException
   * @exception TransactionRolledBackException
   * @exception HeuristicMixedException
   * @exception HeuristicHazardException
   *
   * @see Current#commit
   */
	public void commit(boolean reportHeuristics) throws JotsException;

  /**
   * Rollback current transaction.
   *
   * @exception NoPermissionException
   * @exception HeuristicMixedException
   * @exception HeuristicHazardException
   *
   * @see Current#rollback
   */
	public void rollback() throws JotsException;
}
